import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VueClipboard from "vue-clipboard3";
VueClipboard.config.autoSetContainer = true;
import {
  Button,
  Form,
  Field,
  Icon,
  Checkbox,
  Toast,
  Tabbar,
  TabbarItem,
  Search,
  PullRefresh,
  List,
  Dialog,
  Swipe,
  SwipeItem,
  Popup,
  Uploader,
  Tab,
  Tabs,
  AddressList,
  Area,
  Switch,
  Cell,
  NoticeBar,
} from "vant";
Toast.setDefaultOptions({
  duration: 2000,
});
Toast.setDefaultOptions("loading", {
  forbidClick: true,
});
import "./assets/css/public.css";
const Vue = createApp(App);
Vue.use(Button)
  .use(Form)
  .use(Field)
  .use(Icon)
  .use(Checkbox)
  .use(Toast)
  .use(Tabbar)
  .use(Search)
  .use(PullRefresh)
  .use(List)
  .use(Swipe)
  .use(SwipeItem)
  .use(Dialog)
  .use(Popup)
  .use(Uploader)
  .use(VueClipboard)
  .use(Tab)
  .use(Tabs)
  .use(AddressList)
  .use(Area)
  .use(Switch)
  .use(Cell)
  .use(NoticeBar)
  .use(TabbarItem);

Vue.config.globalProperties.$toast = Toast;
Vue.config.globalProperties.$dialog = Dialog;
Vue.use(store).use(router).mount("#app");
